#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <string.h>
#include <Windows.h>

#define NUM 100
#define MARK '-'

void process()
{
	int i = 0;
	char symbol[] = { '|','/','-','\\','\0' };
	char str[NUM] = { 0 };
	memset(str, ' ', NUM);
	for (; i <= NUM; ++i)
	{
		memset(str, MARK, i);
		if (i != NUM)
		{
			str[i] = '>';
		}
		printf("[%s][%d%%][%c]\r", str, i, symbol[i % 4]);
		fflush(stdout);

		//Sleep(1000);
	}
	printf("\n");
}


int main()
{
	process();
	return 0;
}